package com.lkb.docker.dockerfirst.util;



import gui.ava.html.parser.HtmlParser;
import gui.ava.html.parser.HtmlParserImpl;
import gui.ava.html.renderer.ImageRenderer;
import gui.ava.html.renderer.ImageRendererImpl;



/**
 * @author: Likaibo
 * @data:2023/3/31 11:24
 * @description:
 */
public class ImageUtil {

    private static final String HTML_TEMPLATE_STR = "";

    public static void main(String[] args) throws Exception {
        HtmlParser htmlParser = new HtmlParserImpl();
        htmlParser.loadHtml(HTML_TEMPLATE_STR);
        // html 是我的html代码
        ImageRenderer imageRenderer = new ImageRendererImpl(htmlParser);
        imageRenderer.setWidth(280);
        imageRenderer.saveImage("D:\\lkb.png");


    }



}
